package com.fan.reggie;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

public class UploadFileTest {
    @Test
    public void test(){
        String fiileName = "eerrdd.jpg";
        String suffix = fiileName.substring(fiileName.lastIndexOf("."));
        System.out.println("suffix:"+suffix);
    }
}
